package com.element.information;

import tools.XMLParser;
import world.World;

public class Stats {
	/* default values */
	public static final int HUNGER_MAXIMUM_DEFAULT = 1000;
	public static final int HUNGER_CURRENT_DEFAULT = 800;
	public static final int HUNGER_CRITICAL_DEFAULT = 400;
	
	public static final int HEALTH_MAXIMUM_DEFAULT = 100;
	public static final int HEALTH_CRITICAL_DEFAULT = 50;
	
	/* main stats */
	public int dexterity;
	public int strength;
	public int intelligence;
	public int willpower;
	public int constitution;
	public int charisma;
	
	/* hunger */
	public int hungerMaximum = HUNGER_MAXIMUM_DEFAULT;
	public int hungerCurrent = HUNGER_CURRENT_DEFAULT;
	public int hungerCritical = HUNGER_CRITICAL_DEFAULT;
	
	/* health */
	public int healthMaximum = HEALTH_MAXIMUM_DEFAULT;
	public int healthCurrent = healthMaximum;
	public int healthCritical = HEALTH_CRITICAL_DEFAULT;
	
	/* other / misc */
	private static String xmlPath = "res/raw/stats.xml";
	
	public Stats(String id, World world){
		XMLParser parser = new XMLParser();
		parser.setFields(id, this, xmlPath, world);
	}
}